/**
 *  @file SDLTimer.h
 *
 *  @date 19-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLTIMER_H_
#define SDLTIMER_H_

#include "timer.h"

namespace si_sdl
{

/**
 * Millisecond accurate implementation of Timer using the SDL
 * functions.
 *
 * Uses SDL_GetTicks();
 */
class SDLTimer: public si::Timer
{
public:
	SDLTimer();

	virtual double poll() const;
	virtual double reset();

private:
	// in milliseconds!
	unsigned int now;
};

}

#endif /* SDLTIMER_H_ */
